All Packages Class Hierarchy This Package Previous Next Index
perform(Object)
message.
Function objects are used by many of the algorithms,
ex: for_each.
You must implement the actual function object with code like this:
public class Print implements Function1 { public Object perform(Object each) { System.out.println(each.toString()); return null; } }This class will, when used with the
for_each
function
print each element of the container.
Copyright © 1996 Finn Bock
public abstract Object perform(Object o)
All Packages Class Hierarchy This Package Previous Next Index